<?php
/**
 * Created by Command.
 * User: Vito
 */

declare (strict_types = 1);

namespace app\logic;

use app\model\Housing;
use app\model\User;

class HousingLogic extends BaseLogic
{

    /**
     * 设置模型
     * @return string
     */
    protected function getModelName(): string
    {   
        return Housing::class;
    }

    public function getList(){
        // $res = $this->getAll(['order'=>['id desc']]);
        // $res = $this->find(1);
        // $housing = new Housing();
        // $res = housing::getUser();
        // $res = User::getUser();
        // $res = Housing::getManyUser();
        $res = Housing::scopeTest();

        return $res;
    }
}
